package com.xbs.controller.backstage;
import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 后台顺风车辆管理servlet
 */
import com.xbs.controller.base.BaseServlet;
import com.xbs.entity.HitchEntity;
import com.xbs.service.hitchhiking.HitchCarAdminService;
@WebServlet("/backstage/hitchhiking")
public class HitchhikingServlet extends BaseServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}
	
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		HitchCarAdminService hitch = new HitchCarAdminService();
		
		List<HitchEntity> hitchlst = hitch.getAllCar();
		req.setAttribute("hitchlst",hitchlst );
		
		forward("admin/basicSetting/llp_vehicle");
		
	}
}
